package com.huaxin.hxmoduleworkorder.dto.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.huaxin.hxmoduleworkorder.dto.request.base.baseMaintenanceOrderElectricianTaskOperationReqDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
public class MaintenanceOrderElectricianTaskSubmitResultReqDto extends baseMaintenanceOrderElectricianTaskOperationReqDTO {
    @TableField(value = "electrician_id")
    @Schema(description = "处理电工ID", example = "e1001")
    private String electricianId;

    @Schema(description = "问题描述", example = "客户反映 homeserver 断电了")
    private String problemDescription;

    @Schema(description = "解决方案", example = "使用 UPS 保护 homeserver")
    private String solution;

    @Schema(description = "工时（小时）", example = "1.5")
    private BigDecimal workHours;

    @Schema(description = "使用的配件", example = "[{\"partName\":\"UPS\",\"quantity\":1}]")
    private List<Map<String, Object>> partsUsed;

    @Schema(description = "照片URL列表", example = "[\"https://example.com/photo1.jpg\",\"https://example.com/photo2.jpg\"]")
    private List<String> photoUrls;

    @Schema(description = "电子签名图片URL", example = "https://oss/sign.png")
    private String signImageUrl;

    @Schema(description = "电子签名图片Base64数据", example = "")
    private String signImageBase64Data;
}
